package org.zfes.snowier.cloud.zbss.cms.words.dao;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.cms.words.model.CmsWordsSensitive;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface CmsWordsSensitiveMapper extends BaseMapper<CmsWordsSensitive>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<CmsWordsSensitive> selectModelListPage(ParamMap params);
	//下载所有敏感词
	List<String> loadSensitiveWords();
	//根据敏感词查找相应替换词
	String selectReplaceWordByWords(String words);
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status,@Param("updateTime") Date updateTime);
}
